package com.my.study.designPatterns.observerPattern.improved;

public class WeatherStation {

    public static void main(String[] args) {

        WeatherData2 weatherData = new WeatherData2();
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
        StatisticConditionsDisplay statisticConditionsDisplay = new StatisticConditionsDisplay(weatherData);
        weatherData.setMeasurements(10, 30.1F, 20);
        weatherData.setMeasurements(20, 29.1F, 200);
        weatherData.setMeasurements(30, 45.4F, 2000);
    }
}
